module Admin::PrintProductFieldHelper
  def product_column(record)
    link_to record.product.name, {:controller => 'admin/print_product', :action => 'show', :id => record.product.id}
  end
  
  def values_column(record)
    content = ""
    record.values.inject(content) {|content, prop| content = content << prop.value << ', '}
    content[0, content.length - 2]
  end
end
